aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/cros_nonhardened_config_test.go
diff options
context:
space:
mode:
authorTobias Bosch <tbosch@google.com>2019-08-14 15:15:21 -0700
committerTobias Bosch <tbosch@google.com>2019-08-15 22:43:02 +0000
commit47f580fe94bc41a39c010559c78d918d6fabc2db (patch)
tree647875f5d14254992055c299de93490218e459b1 /compiler_wrapper/cros_nonhardened_config_test.go
parent5fa6d24a85e04ee967f277369ba3714a4a6efe3b (diff)
downloadtoolchain-utils-47f580fe94bc41a39c010559c78d918d6fabc2db.tar.gz
Pass the old wrapper path as a linker argument
BUG=chromium:773875 TEST=unit test and comparison to old wrapper Change-Id: I97cff81f2b42a01f82ba66668693b17a27c14672 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1754130 Tested-by: Tobias Bosch <tbosch@google.com> Reviewed-by: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'compiler_wrapper/cros_nonhardened_config_test.go')
-rw-r--r--compiler_wrapper/cros_nonhardened_config_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler_wrapper/cros_nonhardened_config_test.go b/compiler_wrapper/cros_nonhardened_config_test.go
index 41e3d7c9..e876d309 100644
--- a/compiler_wrapper/cros_nonhardened_config_test.go
+++ b/compiler_wrapper/cros_nonhardened_config_test.go
@@ -8,13 +8,13 @@ import (
"testing"
)
-const oldNonHardenedWrapperPathForTest = "/usr/x86_64-pc-linux-gnu/arm-none-eabi/gcc-bin/4.9.x/sysroot_wrapper"
+const oldNonHardenedWrapperPathForTest = "$CHROOT/usr/x86_64-pc-linux-gnu/arm-none-eabi/gcc-bin/4.9.x/sysroot_wrapper"
const crosNonHardenedGoldenDir = "testdata/cros_nonhardened_golden"
func TestCrosNonHardenedConfig(t *testing.T) {
withTestContext(t, func(ctx *testContext) {
useCCache := true
- ctx.updateConfig(oldNonHardenedWrapperPathForTest, getCrosNonHardenedConfig(useCCache))
+ ctx.updateConfig(getCrosNonHardenedConfig(useCCache, oldNonHardenedWrapperPathForTest))
runGoldenRecords(ctx, crosNonHardenedGoldenDir, createSyswrapperGoldenInputs(ctx))
})