Skip to content

Commit

Permalink
test: don't use ck_abort_msg outside of test runs
Browse files Browse the repository at this point in the history
This function used to be called inside a test run a long time ago but moved to
a pre-setup stage without switching to the more generic litest_abort_msg.
The only error message we got is "check_msg.c:80: No messaging setup".

libcheck/check#18 (comment)

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
  • Loading branch information
whot committed May 14, 2017
1 parent 235001c commit 2c818ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/litest.c
Original file line number Diff line number Diff line change
Expand Up @@ -1190,13 +1190,13 @@ litest_init_udev_rules(struct list *created_files)

rc = mkdir(UDEV_RULES_D, 0755);
if (rc == -1 && errno != EEXIST)
ck_abort_msg("Failed to create udev rules directory (%s)\n",
strerror(errno));
litest_abort_msg("Failed to create udev rules directory (%s)\n",
strerror(errno));

rc = mkdir(UDEV_HWDB_D, 0755);
if (rc == -1 && errno != EEXIST)
ck_abort_msg("Failed to create udev hwdb directory (%s)\n",
strerror(errno));
litest_abort_msg("Failed to create udev hwdb directory (%s)\n",
strerror(errno));

litest_install_model_quirks(created_files);
litest_init_all_device_udev_rules(created_files);
Expand Down

0 comments on commit 2c818ec

Please sign in to comment.