[Pdbg] [PATCH v2 2/6] tests: Use a copy of dtb for testing writes
Amitay Isaacs
amitay at ozlabs.org
Thu Apr 2 09:55:22 AEDT 2020
Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
tests/test_prop.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/test_prop.sh b/tests/test_prop.sh
index e2e511f..5511a75 100755
--- a/tests/test_prop.sh
+++ b/tests/test_prop.sh
@@ -36,7 +36,10 @@ test_run libpdbg_prop_test /proc0/pib write ATTR1 int 0xdeadbeef
test_result 99 --
test_run libpdbg_prop_test /proc0/pib write ATTR2 char PROCESSOR0
-export PDBG_DTB=fake.dtb
+cp fake.dtb fake-prop.dtb
+test_cleanup rm -f fake-prop.dtb
+
+export PDBG_DTB=fake-prop.dtb
test_result 0 --
test_run libpdbg_prop_test /proc1/pib write ATTR1 int 0xdeadbeef
--
2.25.1
More information about the Pdbg
mailing list