hark130 / sketchy-idea

Reusable, stand-alone, Linux code
GNU General Public License v3.0
0 stars 0 forks source link

SKID-4: Fixed all the N06 socket unit test cases #12

Closed hark130 closed 4 months ago

hark130 commented 4 months ago

Many of the older n06 unit tests were using a hard-coded socket that exists on my OS. Well, turns out it doesn't exist everywhere so I refactored the old unit tests to create and delete a raw socket file at "test time".

All tests passing Valgrind is happy

The bad news is that I also updated to 4-space tabs and that threw the diff off, kinda burying all the n06 work I did.

Changes to be committed: modified: code/test/check_sfmr_get_block_size.c modified: code/test/check_sfmr_get_change_time.c modified: code/test/check_sfmr_get_file_device_id.c modified: code/test/check_sfmr_get_file_perms.c modified: code/test/check_sfmr_get_file_type.c modified: code/test/check_sfmr_is_block_device.c modified: code/test/check_sfmr_is_character_device.c modified: code/test/check_sfmr_is_directory.c modified: code/test/check_sfmr_is_named_pipe.c modified: code/test/check_sfmr_is_regular_file.c modified: code/test/check_sfmr_is_socket.c modified: code/test/check_sfmr_is_sym_link.c