This paper addresses the robustness of an optimal online energy management for diesel hybrid electric vehicle (HEV). Optimal strategy is based on the Equivalent Consumption Minimization Strategy (ECMS). Optimal torque split between engine and electric motor is found by minimizing fuel consumption and Nitrogen Oxides (NOx) emissions. Online adaptation is made in order to ensure battery charge sustainability and good driveability when driving conditions are unknown. The strategy is tested in simulation over one hundred driving cycles representative of real-world conditions. Results obtained with the online strategy are compared with those of an offline optimal strategy (knowing the driving cycle a priori). Even if a slight degradation is noticed in comparison to optimal case, fuel economy and NOx reduction - provided by hybridization - are conserved with the online strategy.