]> git.lizzy.rs Git - rust.git/commitdiff
Adapt rmake-test to new naming scheme for internal symbols.
authorMichael Woerister <michaelwoerister@posteo.net>
Mon, 24 Oct 2016 15:07:45 +0000 (11:07 -0400)
committerMichael Woerister <michaelwoerister@posteo.net>
Mon, 24 Oct 2016 15:07:45 +0000 (11:07 -0400)
src/test/run-make/symbols-are-reasonable/Makefile

index c668ffc5832b6a6c71ede94310dfd91f3cfb521a..1c117cf0c9e62b18b81d113f233a6d76c6022aab 100644 (file)
@@ -1,7 +1,7 @@
 -include ../tools.mk
 
 # check that the compile generated symbols for strings, binaries,
-# vtables, etc. have semisane names (e.g. `str1234`); it's relatively
+# vtables, etc. have semisane names (e.g. `str.1234`); it's relatively
 # easy to accidentally modify the compiler internals to make them
 # become things like `str"str"(1234)`.
 
@@ -10,6 +10,6 @@ OUT=$(TMPDIR)/lib.s
 all:
        $(RUSTC) lib.rs --emit=asm --crate-type=staticlib
        # just check for symbol declarations with the names we're expecting.
-       grep 'str[0-9][0-9]*:' $(OUT)
-       grep 'byte_str[0-9][0-9]*:' $(OUT)
-       grep 'vtable[0-9][0-9]*' $(OUT)
+       grep 'str.[0-9][0-9]*:' $(OUT)
+       grep 'byte_str.[0-9][0-9]*:' $(OUT)
+       grep 'vtable.[0-9][0-9]*' $(OUT)