diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-10-04 23:51:45 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-10-04 23:55:35 +0200 |
commit | bdf7026e9557349cd3eeb291c01655d5f2a55db8 (patch) | |
tree | 10d269fed663e99d659c34e2f8e89fe5b3f55ecd /src/test/test-libudev.c | |
parent | 2355af60dc0c0ec2b7fbe69f15a77d980b017b3f (diff) |
test: only use assert_se
The asserts used in the tests should never be allowed to be
optimized away
Diffstat (limited to 'src/test/test-libudev.c')
-rw-r--r-- | src/test/test-libudev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-libudev.c b/src/test/test-libudev.c index ea190990eb..a51814df95 100644 --- a/src/test/test-libudev.c +++ b/src/test/test-libudev.c @@ -407,7 +407,7 @@ static void test_hwdb(struct udev *udev, const char *modalias) { printf("\n"); hwdb = udev_hwdb_unref(hwdb); - assert(hwdb == NULL); + assert_se(hwdb == NULL); } int main(int argc, char *argv[]) { |