File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
branches/snap-stage3/src/librustpkg Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: f1132496dddbdd88f321a7919eec3d65136b3f75
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: ef8a5044ff26c8aab077a421b91231ce132e3ff5
4
+ refs/heads/snap-stage3: 996989cdb4c936ee3e41e65e6cd4d22c073206f9
5
5
refs/heads/try: ebfe63cd1c0b5d23f7ea60c69b4fde2e30cfd42a
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -1034,6 +1034,18 @@ fn test_extern_mod() {
1034
1034
assert ! ( os:: path_exists( & exec_file) && is_executable( & exec_file) ) ;
1035
1035
}
1036
1036
1037
+ #[ test]
1038
+ fn test_import_rustpkg ( ) {
1039
+ let p_id = PkgId :: new ( "foo" ) ;
1040
+ let workspace = create_local_package ( & p_id) ;
1041
+ writeFile ( & workspace. push ( "src" ) . push ( "foo-0.1" ) . push ( "pkg.rs" ) ,
1042
+ "extern mod rustpkg; fn main() {}" ) ;
1043
+ command_line_test ( [ ~"build", ~"foo"] , & workspace) ;
1044
+ debug ! ( "workspace = %s" , workspace. to_str( ) ) ;
1045
+ assert ! ( os:: path_exists( & workspace. push( "build" ) . push( "foo" ) . push( fmt!( "pkg%s" ,
1046
+ os:: EXE_SUFFIX ) ) ) ) ;
1047
+ }
1048
+
1037
1049
/// Returns true if p exists and is executable
1038
1050
fn is_executable ( p : & Path ) -> bool {
1039
1051
use std:: libc:: consts:: os:: posix88:: { S_IXUSR } ;
You can’t perform that action at this time.
0 commit comments