Fix featurized integration test (#1621)
Fix featurized integration test
This commit is contained in:
		@@ -1,9 +1,11 @@
 | 
				
			|||||||
extern crate bincode;
 | 
					extern crate bincode;
 | 
				
			||||||
extern crate elf;
 | 
					extern crate elf;
 | 
				
			||||||
 | 
					extern crate serde_derive;
 | 
				
			||||||
extern crate solana;
 | 
					extern crate solana;
 | 
				
			||||||
extern crate solana_sdk;
 | 
					extern crate solana_sdk;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use bincode::serialize;
 | 
					use bincode::serialize;
 | 
				
			||||||
 | 
					use serde_derive::Serialize;
 | 
				
			||||||
use solana::bank::Bank;
 | 
					use solana::bank::Bank;
 | 
				
			||||||
#[cfg(feature = "bpf_c")]
 | 
					#[cfg(feature = "bpf_c")]
 | 
				
			||||||
use solana::bpf_loader;
 | 
					use solana::bpf_loader;
 | 
				
			||||||
@@ -13,8 +15,6 @@ use solana::mint::Mint;
 | 
				
			|||||||
use solana::native_loader;
 | 
					use solana::native_loader;
 | 
				
			||||||
use solana::signature::{Keypair, KeypairUtil};
 | 
					use solana::signature::{Keypair, KeypairUtil};
 | 
				
			||||||
use solana::system_transaction::SystemTransaction;
 | 
					use solana::system_transaction::SystemTransaction;
 | 
				
			||||||
#[cfg(feature = "bpf_c")]
 | 
					 | 
				
			||||||
use solana::tictactoe_program::Command;
 | 
					 | 
				
			||||||
use solana::transaction::Transaction;
 | 
					use solana::transaction::Transaction;
 | 
				
			||||||
use solana_sdk::pubkey::Pubkey;
 | 
					use solana_sdk::pubkey::Pubkey;
 | 
				
			||||||
#[cfg(feature = "bpf_c")]
 | 
					#[cfg(feature = "bpf_c")]
 | 
				
			||||||
@@ -334,6 +334,15 @@ fn test_program_bpf_noop_c() {
 | 
				
			|||||||
    );
 | 
					    );
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#[derive(Debug, Serialize)]
 | 
				
			||||||
 | 
					#[repr(C)]
 | 
				
			||||||
 | 
					pub enum Command {
 | 
				
			||||||
 | 
					    Init,           // player X initializes a new game
 | 
				
			||||||
 | 
					    Join(i64),      // player O wants to join (seconds since UNIX epoch)
 | 
				
			||||||
 | 
					    KeepAlive(i64), // player X/O keep alive (seconds since UNIX epoch)
 | 
				
			||||||
 | 
					    Move(u8, u8),   // player X/O mark board position (x, y)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#[cfg(feature = "bpf_c")]
 | 
					#[cfg(feature = "bpf_c")]
 | 
				
			||||||
struct TicTacToe {
 | 
					struct TicTacToe {
 | 
				
			||||||
    game: Keypair,
 | 
					    game: Keypair,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user