diff options
author | Karel Zak | 2009-10-13 15:37:49 +0200 |
---|---|---|
committer | Karel Zak | 2009-10-13 15:37:49 +0200 |
commit | d4e0f2f2ad93124c01695c072e7a514ff8e27d2c (patch) | |
tree | 020b80fd4631fa93887d8370c594431417a70da5 /tests/ts/swapon/devname | |
parent | swapon: more robust progname probing (diff) | |
download | kernel-qcow2-util-linux-d4e0f2f2ad93124c01695c072e7a514ff8e27d2c.tar.gz kernel-qcow2-util-linux-d4e0f2f2ad93124c01695c072e7a514ff8e27d2c.tar.xz kernel-qcow2-util-linux-d4e0f2f2ad93124c01695c072e7a514ff8e27d2c.zip |
tests: swapon workaround for libtool wrapper
The swapon command behaviour depends on program name (argv[0] = swapon
| swapoff). It means we cannot use the libtool wrapper script in our
regression tests. It seems better to call the binaries directly with
proper LD_LIBRARY_PATH. This is probably less portable, but good
enough for our tests.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/swapon/devname')
-rwxr-xr-x | tests/ts/swapon/devname | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ts/swapon/devname b/tests/ts/swapon/devname index f6edd537e..6ad6b2fc2 100755 --- a/tests/ts/swapon/devname +++ b/tests/ts/swapon/devname @@ -32,7 +32,8 @@ $TS_CMD_MKSWAP $DEVICE > /dev/null 2>> $TS_OUTPUT \ ts_device_has "TYPE" "swap" $DEVICE || ts_die "Cannot found swap on $DEVICE" $DEVICE -$TS_CMD_SWAPON $DEVICE 2>&1 >> $TS_OUTPUT +LD_LIBRARY_PATH="$U_L_LIBRARY_PATH" \ + $TS_CMD_SWAPON $DEVICE 2>&1 >> $TS_OUTPUT grep -q $DEVICE /proc/swaps || ts_die "Cannot found $DEVICE in /proc/swaps" $DEVICE |