Skip to content

Commit

Permalink
test: drop the #define for the litest device rules
Browse files Browse the repository at this point in the history
This was more useful when we installed multiple device rules but now it's only
one file anyway. Also, this drops the inadvertant double-dash
(e.g. 99-litest--Jo7Ji8.rules) which made the file name look like some
substitution was missing.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
  • Loading branch information
whot committed Feb 12, 2020
1 parent 8040f94 commit 5a51add
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/litest.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
#include <linux/kd.h>

#define UDEV_RULES_D "/run/udev/rules.d"
#define UDEV_RULE_PREFIX "99-litest-"
#define UDEV_FUZZ_OVERRIDE_RULE_FILE UDEV_RULES_D \
"/91-litest-fuzz-override-REMOVEME-XXXXXX.rules"
#define UDEV_TEST_DEVICE_RULE_FILE UDEV_RULES_D \
Expand Down Expand Up @@ -726,9 +725,8 @@ litest_init_all_device_udev_rules(struct list *created_files)
int fd;

rc = xasprintf(&path,
"%s/%s-XXXXXX.rules",
UDEV_RULES_D,
UDEV_RULE_PREFIX);
"%s/99-litest-XXXXXX.rules",
UDEV_RULES_D);
litest_assert_int_gt(rc, 0);

fd = mkstemps(path, 6);
Expand Down

0 comments on commit 5a51add

Please sign in to comment.